package us.kg.kotoriforest.spring.util;

import java.util.UUID;

/**
 * @author Kotori rotroutine@163.com
 * @since 2025/1/26
 */
public final class UUIDUtil {
    private UUIDUtil() {
    }

    public static String getUUID() {
        return getUUID(true);
    }


    public static String getUUID(Boolean containsDelimiter) {
        String uuid = UUID.randomUUID().toString();

        if (!containsDelimiter) {
            uuid = uuid.replace("-", "");
        }

        return uuid;
    }
}
